import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:tencent_cloud_chat_sdk/models/v2_tim_message.dart';
import 'package:video_ducafecat_flutter_v3/common/index.dart';

/// 表情消息
class MsgFaceElemWidget extends StatelessWidget {
  final V2TimMessage message;

  const MsgFaceElemWidget({
    super.key,
    required this.message,
  });

  Widget _buildView() {
    return ImageWidget.asset(
      "${Constants.customFacePath}${message.faceElem!.index}/${message.faceElem!.data}",
      width: 96.w,
      height: 96.w,
    );
  }

  @override
  Widget build(BuildContext context) {
    return _buildView();
  }
}
